package task;

import java.util.Scanner;

/*
 * 商品接口类
 */
public abstract class AbstractShape implements IShape {

	// 商品
	private int Product;

	// 商品编号
	private int Id;

	// 商品名称
	private String Name;

	// 商品品牌
	private String Brand;

	// 商品价格
	private float Price;

	public AbstractShape(int product, int id, String name, String brand, float price) {
		super();
		Name = name;

	}

	public AbstractShape(String name) {
		this.Name = name;
	}

	public int getProduct() {
		return Product;
	}

	public void setProduct(int product) {
		Product = product;
	}

	public int getId() {
		return Id;
	}

	public void setId(int id) {
		Id = id;
	}

	public String getName() {
		return Name;
	}

	public void setName(String name) {
		Name = name;
	}

	public String getBrand() {
		return Brand;
	}

	public void setBrand(String brand) {
		Brand = brand;
	}

	public float getPrice() {
		return Price;
	}

	public void setPrice(float price) {
		Price = price;
	}

	public final void show() {
		System.out.format("\n" + Id + "\t" + getName() + "\t" + Brand + "\t" + Price);
	}

}
